﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_COOPERATION_ORDER
// * CreateDate    : 2012/5/2 14:46:27
// * Creater       : CodeSmith
// * LastChangeDate: 2012/5/2 14:46:27
// * LastChanger   : 2012/5/2 14:46:27
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdCooperationOrderTable : TableInfo
    {
        public const string C_TableName = "PROD_COOPERATION_ORDER";

        public const string C_ORDER_ID = "ORDER_ID";
        public const string C_PRODUCT_TECHNIC_ID = "PRODUCT_TECHNIC_ID";
        public const string C_ORDER_CODE = "ORDER_CODE";
        public const string C_STATUS = "STATUS";
        public const string C_SUPPLIER_ID = "SUPPLIER_ID";
        public const string C_SUPPLIER_NAME = "SUPPLIER_NAME";
        public const string C_QTY = "QTY";
        public const string C_UNIT_PRICE = "UNIT_PRICE";
        public const string C_TOTAL_PRICE = "TOTAL_PRICE";
        public const string C_WEIGHT = "WEIGHT";
        public const string C_REMARK = "REMARK";
        public const string C_PLAN_DELIVERY_DATE = "PLAN_DELIVERY_DATE";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
        public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";

        public ProdCooperationOrderTable()
        {
            _tableName = "PROD_COOPERATION_ORDER";
        }

        protected static ProdCooperationOrderTable _current;
        public static ProdCooperationOrderTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdCooperationOrderTable();

            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID, "OrderId", true, typeof(string)));
            _current.Add(C_PRODUCT_TECHNIC_ID, new ColumnInfo(C_PRODUCT_TECHNIC_ID, "ProductTechnicId", false, typeof(string)));
            _current.Add(C_ORDER_CODE, new ColumnInfo(C_ORDER_CODE, "OrderCode", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(int)));
            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID, "SupplierId", false, typeof(string)));
            _current.Add(C_SUPPLIER_NAME, new ColumnInfo(C_SUPPLIER_NAME, "SupplierName", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_UNIT_PRICE, new ColumnInfo(C_UNIT_PRICE, "UnitPrice", false, typeof(decimal)));
            _current.Add(C_TOTAL_PRICE, new ColumnInfo(C_TOTAL_PRICE, "TotalPrice", false, typeof(decimal)));
            _current.Add(C_WEIGHT, new ColumnInfo(C_WEIGHT, "Weight", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_PLAN_DELIVERY_DATE, new ColumnInfo(C_PLAN_DELIVERY_DATE, "PlanDeliveryDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE, "LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY, "LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));

        }

        public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }

        public ColumnInfo PRODUCT_TECHNIC_ID
        {
            get { return this[C_PRODUCT_TECHNIC_ID]; }
        }

        public ColumnInfo ORDER_CODE
        {
            get { return this[C_ORDER_CODE]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }

        public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }

        public ColumnInfo SUPPLIER_NAME
        {
            get { return this[C_SUPPLIER_NAME]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo UNIT_PRICE
        {
            get { return this[C_UNIT_PRICE]; }
        }

        public ColumnInfo TOTAL_PRICE
        {
            get { return this[C_TOTAL_PRICE]; }
        }

        public ColumnInfo WEIGHT
        {
            get { return this[C_WEIGHT]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo PLAN_DELIVERY_DATE
        {
            get { return this[C_PLAN_DELIVERY_DATE]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }

        public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }



    }
}

